package com.example.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@AllArgsConstructor
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain=true)
/*
  用户实体类
 */
public class UserInfo {
    //主键id自增
    @TableId(type = IdType.AUTO)
    private int id;
    //用户名
    private String userName;
    //账号
    private String account;
    //密码
    private String password;
    //邮箱
    private String mobileBox;
    //百度云账号
    private String cloudLink;
    //百度云密钥
    private String cloudKey;
    //权限
    private int userRole;
    //资源
    private String resources;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;
    @TableLogic//逻辑删除
    private int isdelete;

}
